//
//  ShopCommentsViewController.h
//  OrderSeat
//
//  Created by wangwei on 13-10-8.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShopCommentsCell.h"

@class ShopCommentsDataSource;
@interface ShopCommentsViewController : BaseViewController<UIAlertViewDelegate>

@property (weak, nonatomic) IBOutlet UIView *topView;
@property (strong, nonatomic) UIViewController *parentController;
@property (strong, nonatomic) IBOutlet UITableView *commentsTable;
@property (strong, nonatomic) ShopCommentsDataSource *dataSource;
@property (strong, nonatomic) IBOutlet UILabel *totalCommentsLabel;
@property (strong, nonatomic) IBOutlet UILabel *totalPointLabel;

@property (strong, nonatomic) NSString *shopId;

- (id)initWithShopId:(NSString*)shopId;

@end

@interface ShopCommentsDataSource : BaseDataSource<UITableViewDataSource,UITableViewDelegate>

@property (nonatomic, strong) NSMutableArray *commentsList;
@property (nonatomic, strong) ShopCommentsCell *commentsCell;
@property (nonatomic, strong) ShopCommentsViewController *viewController;

@property (assign, nonatomic) int pageNumber;

- (void)fetchCommentsIsLoadMore:(BOOL)isLoadMore;

@end